package com.share.design.chain;

/**
 * author:caifan
 * date:2020/2/5
 */
public class ProjectManager extends Manager {

    @Override
    public void request(Request request) {
        if (request.getAddSalary() > 1000f) {
            setManager(new CTO());
            getManager().request(request);
        } else {
            System.out.println(request.getName() + "的薪资增加：" + request.getAddSalary() + "审批通过");
        }
    }
}
